﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="action_List.aspx.cs" Inherits="action_List" %>
<%@ Import Namespace="Net.Ntalent.Action50.Core.Util"%>
<%@ Import Namespace="Net.Ntalent.Action50.DataAccess"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>ActionList</title>
<link type="text/css" rel="stylesheet" href="css/common.css" />
<link type="text/css" rel="stylesheet" href="css/action.css" />

<!--下拉框所用文件S-->
<script type="text/javascript" src="js/navList.js"></script>
<!--下拉框所用文件E-->

<!--[if IE 6]>
<style type="text/css">
* html,* html body /* 修正IE6振动bug */{background-image:url(about:blank);background-attachment:fixed;}
* html .fixed-top /* IE6 头部固定 */{position:absolute;margin-top:100px;bottom:auto;top:expression(eval(document.documentElement.scrollTop));}
</style>
<![endif]-->



<!--[if IE 6]>
<script src="js/DD_belatedPNG_0.0.8a.js" type="text/javascript"></script>
<script type="text/javascript">
DD_belatedPNG.fix('div, ul, li, input');
</script>
<![endif]-->
</head>

<body onload="startList();">
    <form id="form1" runat="server">
<div class="wrappera">
	<div class="wrapperb">
		<!-- 界面头部 S -->
		<div id="head" class="head">
			<!-- 界面头部 网站LOGO S -->
			<div id="site_logo">
			</div>
			<!-- 界面头部 网站LOGO E -->
			<!-- 界面头部 网站导航栏 S -->
			<div class="site_nav">
				<ul id="nav">
					<li class="nowPaged"><a href="Default.aspx">HOME</a></li>
					<li><a href="#">ABOUT US</a></li>
					<li><a href="action_List.aspx">ACTIONS</a></li>
                    <li class="right" id="Li_Login" runat="server"><a href="admin_Login.aspx">LOGIN</a></li>

					<li class="right" id="Li_Admin" runat="server"><a href="admin_Action_List.aspx">ADMIN</a>
					    <ul>
					        <li>
                                <asp:LinkButton ID="LinkButton3" runat="server" onclick="LinkButton3_Click">LOGOUT</asp:LinkButton></li>
					    </ul>
					</li>

					<li class="right"><a href="#">CONTACT US</a></li>
					<li class="right"><a href="#">PARTNERS</a></li>
				</ul>
			</div>
			<!-- 界面头部 网站导航栏 E -->
		</div>
		<!-- 界面头部 E -->
		
		<!-- 界面主体部分 S -->
		<div class="mainBody">
			<div class="actionsListWrapper">
				<div class="actionList_title"></div>
				<!-- 界面主体部分 活动列表 S -->





<asp:ListView ID="ListView1" runat="server" DataSourceID="ObjectDataSource1" 
                    ondatabound="ListView1_DataBound">
    <LayoutTemplate>
    <asp:PlaceHolder id="itemPlaceholder" runat="server"></asp:PlaceHolder>
    </LayoutTemplate>
        <ItemTemplate>

  <div class="<%#Helper.getTheOrderName2((T_ACTIONS)Container.DataItem) %>">
		        <span class="ListLeft"></span>
		        <div class="ListMid">
                    <div ID="PlaceHolder_rank" class=<%#Helper.getTheOrderName((T_ACTIONS)Container.DataItem) %> runat="server"></div>

			        <img src="Handlers/GallaryHandler.ashx?action=getLogo&actionId=<%#((T_ACTIONS)Container.DataItem).Id%>" alt="" />
			        <div class="info">
				        <a href="action_Team.aspx?actionId=<%#((T_ACTIONS)Container.DataItem).Id %>"><%#((T_ACTIONS)Container.DataItem).ACTION_NAME %></a>
				        <span class="words">Member: <span><%#((T_ACTIONS)Container.DataItem).EFFECT_PEOPLE_COUNT %></span></span>
				        <span class="words">Votes:<span><%#((T_ACTIONS)Container.DataItem).VOTES %></span> </span>
			        </div>
			        <div class="icons">
				        <a href="action_logsList.aspx?actionId=<%#((T_ACTIONS)Container.DataItem).Id %>" class="iconsFun weBlog">Blog</a>
				        <a href="action_Team_Gallary.aspx?actionId=<%#((T_ACTIONS)Container.DataItem).Id %>" class="iconsFun weGallary">Gallery</a>
				        <a href="action_newsList.aspx?actionId=<%#((T_ACTIONS)Container.DataItem).Id %>" class="iconsFun ourNews">News</a>
			        </div>
			        <p><a href="action_Team.aspx?actionId=<%#((T_ACTIONS)Container.DataItem).Id %>" class="inP aboutUs">About Us:</a>
                <%#Helper.getSubString(((T_ACTIONS)Container.DataItem).SHORT_INTRO, 80)%>
                <a href="action_Team.aspx?actionId=<%#((T_ACTIONS)Container.DataItem).Id %>" class="inP"> Read More></a></p>
		        </div>
		        <a href="action_Team.aspx?actionId=<%#((T_ACTIONS)Container.DataItem).Id %>" class="ListRight"></a>
</div>


    
        </ItemTemplate>
</asp:ListView>


<div class="turnPage right">

<asp:DataPager PagedControlID="ListView1" ID="DataPager1" runat="server" PageSize="10">
    <Fields>
        <asp:NextPreviousPagerField ButtonType="Link" ShowNextPageButton="false" ShowLastPageButton="false"
            ShowFirstPageButton="true"  FirstPageText="First"
            ShowPreviousPageButton="true" PreviousPageText="&lt; Previous" ButtonCssClass="linkB left"
RenderNonBreakingSpacesBetweenControls="false"
             /> 

        <asp:NumericPagerField  ButtonType=Link CurrentPageLabelCssClass="linkC left" NumericButtonCssClass="linkC left" RenderNonBreakingSpacesBetweenControls="false" ButtonCount=10/>

        <asp:NextPreviousPagerField ButtonType="Link"  ButtonCssClass="linkB left" ShowFirstPageButton="false" ShowPreviousPageButton="false"
            ShowNextPageButton="true" NextPageText="Next &gt;"  RenderNonBreakingSpacesBetweenControls="false"
            ShowLastPageButton="true"  LastPageText="Last"/>
    </Fields>
</asp:DataPager>


</div>
				<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                    SelectMethod="RetrieveRankingList" 
                    TypeName="Net.Ntalent.Action50.Core.Service.ReadOnlyService">
                    <SelectParameters>
                        <asp:Parameter DefaultValue="0" Name="pageNumber" Type="Int32" />
                        <asp:Parameter DefaultValue="0" Name="pageSize" Type="Int32" />
                    </SelectParameters>
                </asp:ObjectDataSource>


				<!-- 界面主体部分 活动列表 E -->
			</div>
		</div>
		<!-- 界面主体部分 E -->
		
		<!-- 界面尾部 S -->
		<div id="footer" class="footer">
		</div>
		<!-- 界面尾部 E -->


	</div>
</div>

    </form>

</body>

</html>
